import request from '@/utils/request'

export function getCategory() {
    return request({
        url: 'home/category/head',
        method: 'get'
    })
}
export function getBrand(data) {
    return request({
        url: 'home/brand?limit=' + data,
        method: 'get'
    })
}
export function getNew() {
    return request({
        url: 'home/new',
        method: 'get'
    })
}
// 轮播数据
export function getBanner(distributionSite) {
    return request({
        url: 'home/banner?distributionSite=' + distributionSite,
        methods: 'get'
    })
}
export function getHot() {
    return request({
        url: 'home/hot',
        methods: 'get'
    })
}
export function getGoods() {
    return request({
        url: 'home/goods',
        methods: 'get'
    })
}
export function getSpecial(limit) {
    return request({
        url: 'home/special?limit='+limit,
        methods: 'get'
    })
}